const { override, fixBabelImports, addLessLoader } = require("customize-cra");

module.exports = override(
  fixBabelImports("import", {
    libraryName: "antd",
    libraryDirectory: "es",
    // style: 'css',
    style: true,
  }),
  addLessLoader({
    lessOptions: {
      javascriptEnabled: true,
      // 这里写green,rgb，#17a05d这三种写法都可以
      modifyVars: { "@primary-color": "#17a05d" },
    }
  })
);
